package com.leanyuan.publi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@TableName(value = "t_admin")
@Data
public class TAdmin {
    @TableId(value = "admin_id", type = IdType.INPUT)
    private Integer adminId;

    @TableField(value = "p_id")
    private Integer pId;

    @TableField(value = "admin_id2")
    private Integer adminId2;

    @TableField(value = "name")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @TableField(value = "password")
    private String password;

    @TableField(value = "addtime")
    private Date addtime;

    @TableField(value = "admincondition")
    private String admincondition;

    @TableField(exist = false)
    private List<TRole> tRole;

    public static final String COL_ADMIN_ID = "admin_id";

    public static final String COL_P_ID = "p_id";

    public static final String COL_ADMIN_ID2 = "admin_id2";

    public static final String COL_NAME = "name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_ADDTIME = "addtime";

    public static final String COL_ADMINCONDITION = "admincondition";
}